package com.zm;


import java.io.*;


public class JsonConvert {


    static String fileName = "src/cab_bat.json";

    /**
     * @param args
     */
    public static void main(String[] args) {

//        String Path = "d:\\" + fileName + ".json";
        String Path =   fileName ;
        BufferedReader reader = null;
        String laststr = "";
        try {
            FileInputStream fileInputStream = new FileInputStream(Path);
            InputStreamReader inputStreamReader = new InputStreamReader(fileInputStream, "UTF-8");
            reader = new BufferedReader(inputStreamReader);
            String tempString = null;
            while ((tempString = reader.readLine()) != null) {
                laststr += tempString;
            }
            reader.close();
        } catch (IOException e) {
            e.printStackTrace();
        } finally {
            if (reader != null) {
                try {
                    reader.close();
                } catch (IOException e) {
                    e.printStackTrace();
                }
            }
        }
        System.out.println(laststr);
    }
}
